package com.example.zhaoping.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_recruitment")
public class Position {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Long eid;
    private String username;
    private String name;
    private String avatar;
    private String industry;
    private String job;
    private String salary;
    private String address;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("releaseTime")
    private Date releaseTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("validTime")
    private Date validTime;
    private String education;
    private String experience;
    private String number;
    private String description;
    private String company_profile;
    private int views;
    @TableField(exist = false)
    private Enterprise enterpriseList;
}
